﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HKEA.CMS.Core.Models
{
    public class M_MediaRoomRelatedDetail
    {
        public string From { get; set; }
        public string KeyMediaRelatedUID { get {
            if (From == "app")
                return AppMediaRelatedUID.ToString() + "_app";
            else
                return TblMediaRelatedUID.ToString() + "_tbl";
        } }
        public string KeyMediaUID { get {
            if (AppMediaUID > 0)
                return AppMediaUID.ToString() + "_app";
            else
                return TblMediaUID.ToString() + "_tbl";
        } }
        public int AppMediaRelatedUID { get; set; }
        public int TblMediaRelatedUID { get; set; }
        public int AppMediaUID { get; set; }
        public int TblMediaUID { get; set; }
        public string CateGory { get; set; }
        //public int CustomerUID { get; set; }
        //public string MediaType { get; set; }
        public string FilePath { get; set; }
        public string FileName { get; set; }
        //public int IsPublish { get; set; }
        public int IsDeleted { get; set; }
        public int TblRelatedUID { get; set; }
        public int AppRelatedUID { get; set; }

    }
}
